<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			let str = 'https://www.baidu.com';
			if(str.startsWith('http://')){
				console.log("普通地址");
			}else if(str.startsWith("https://")){
				console.log("加密地址");
			}else {
				console.log("其他地址");
			}
		</script>
	</head>
	<body>
	</body>
</html>
